package com.wx.algorithm.linked.node;

/**
 * @desc: 单向链表
 * @author: wx
 * @time: 2019/12/7 10:40 AM
 */
public class OneNode<E> {

    //元素
    private E e;

    //指向下个节点
    private OneNode next;


    public OneNode(E e) {
        this.e = e;
        this.next = null;
    }

    public OneNode(E e, OneNode next) {
        this.e = e;
        this.next = next;
    }



    public OneNode<E> getNext() {
        return next;
    }

    public void setNext(OneNode next) {
        this.next = next;
    }

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }
}
